﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;
using MvcApplication2.Models;
using MvcApplication2.Models.DTO;
using System.Data.SqlClient;

namespace MvcApplication2.Models.Services
{
    public class LoaiNguoiDungService
    {
        public static List<LoaiNguoiDung> LayDanhDachLoaiNguoiDung()
        {
            MyDataProvider.Open();
            DataTable dt = MyDataProvider.excuteQuery("spu_loainguoidung_getAll");
            MyDataProvider.Close();

            return Utility.ToList<LoaiNguoiDung>(dt);
        }
    }
}